load("@io_bazel_rules_go//go:def.bzl", "go_library")

go_library(
    name = "go_default_library",
    srcs = [
        "controller.go",
        "start.go",
    ],
    importpath = "github.com/jetstack/cert-manager/cmd/controller/app",
    visibility = ["//visibility:public"],
    deps = [
        "//cmd/controller/app/options:go_default_library",
        "//cmd/util:go_default_library",
        "//pkg/acme/accounts:go_default_library",
        "//pkg/client/clientset/versioned:go_default_library",
        "//pkg/client/clientset/versioned/scheme:go_default_library",
        "//pkg/client/informers/externalversions:go_default_library",
        "//pkg/controller:go_default_library",
        "//pkg/controller/acmechallenges:go_default_library",
        "//pkg/controller/acmeorders:go_default_library",
        "//pkg/controller/certificate-shim/gateways:go_default_library",
        "//pkg/controller/certificate-shim/ingresses:go_default_library",
        "//pkg/controller/certificates/trigger:go_default_library",
        "//pkg/controller/clusterissuers:go_default_library",
        "//pkg/controller/issuers:go_default_library",
        "//pkg/feature:go_default_library",
        "//pkg/issuer/acme:go_default_library",
        "//pkg/issuer/acme/dns/util:go_default_library",
        "//pkg/issuer/ca:go_default_library",
        "//pkg/issuer/selfsigned:go_default_library",
        "//pkg/issuer/vault:go_default_library",
        "//pkg/issuer/venafi:go_default_library",
        "//pkg/logs:go_default_library",
        "//pkg/metrics:go_default_library",
        "//pkg/util:go_default_library",
        "//pkg/util/feature:go_default_library",
        "//pkg/util/profiling:go_default_library",
        "@com_github_spf13_cobra//:go_default_library",
        "@io_k8s_api//core/v1:go_default_library",
        "@io_k8s_apimachinery//pkg/api/errors:go_default_library",
        "@io_k8s_apimachinery//pkg/api/resource:go_default_library",
        "@io_k8s_apimachinery//pkg/util/errors:go_default_library",
        "@io_k8s_client_go//informers:go_default_library",
        "@io_k8s_client_go//kubernetes:go_default_library",
        "@io_k8s_client_go//kubernetes/scheme:go_default_library",
        "@io_k8s_client_go//kubernetes/typed/core/v1:go_default_library",
        "@io_k8s_client_go//plugin/pkg/client/auth:go_default_library",
        "@io_k8s_client_go//rest:go_default_library",
        "@io_k8s_client_go//tools/clientcmd:go_default_library",
        "@io_k8s_client_go//tools/leaderelection:go_default_library",
        "@io_k8s_client_go//tools/leaderelection/resourcelock:go_default_library",
        "@io_k8s_client_go//tools/record:go_default_library",
        "@io_k8s_sigs_gateway_api//apis/v1alpha1:go_default_library",
        "@io_k8s_sigs_gateway_api//pkg/client/clientset/versioned:go_default_library",
        "@io_k8s_sigs_gateway_api//pkg/client/clientset/versioned/scheme:go_default_library",
        "@io_k8s_sigs_gateway_api//pkg/client/informers/externalversions:go_default_library",
        "@io_k8s_utils//clock:go_default_library",
        "@org_golang_x_sync//errgroup:go_default_library",
    ],
)

filegroup(
    name = "package-srcs",
    srcs = glob(["**"]),
    tags = ["automanaged"],
    visibility = ["//visibility:private"],
)

filegroup(
    name = "all-srcs",
    srcs = [
        ":package-srcs",
        "//cmd/controller/app/options:all-srcs",
    ],
    tags = ["automanaged"],
    visibility = ["//visibility:public"],
)
